package com.zpark.resume.service;

import com.zpark.resume.entity.Recommend;
import com.zpark.resume.exception.InsertRecommendLoseException;
import com.zpark.resume.exception.UpdateRecommendLoseException;

/**
 * @PackageName: com.zpark.resume.service
 * @ClassName: IRecommendService
 * @Description:个人推荐信业务层接口
 * @author: RZS
 * @date: 2023/6/1  17:31
 */
public interface IRecommendService {

    /**
     * 根据member的id查询数据
     * @param memberId
     * @return
     */
    Recommend findByMemberId(Integer memberId);

    // 添加个人推荐信
    Integer addRecommend(Recommend recommend, Integer memberId) throws InsertRecommendLoseException;

    // 修改自荐信
    Integer changeRecommend(Recommend recommend) throws UpdateRecommendLoseException;
}
